package com.kmair.caiwu.financialexpress.dao;

import com.kmair.caiwu.financialexpress.pojo.ExpreseData;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ExpreseDataMapper {

    int deleteByPrimaryKey(Integer tId);

    int insert(ExpreseData record);

    int insertSelective(ExpreseData record);

    ExpreseData selectByPrimaryKey(Integer tId);

    int updateByPrimaryKeySelective(ExpreseData record);

    int updateByPrimaryKey(ExpreseData record);

    List<ExpreseData> selectBySelective(ExpreseData record);

    Double sumActualPrice(@Param("subjectId") String subjectId, @Param("actualDate") String actualDate);

    void expreseDataInit(String queryDate);

    List<ExpreseData> selectBySubjectIdLength(@Param("length") Integer length, @Param("queryDate") String queryDate);
}